package lab01;

import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("分数： ");
        int score = sc.nextInt();

        if (score > 1) {
            if (score == 2) {
                System.out.println("及格");
            }
            if (score == 3) {
                System.out.println("中等");
            }
            if (score == 4) {
                System.out.println("良好");
            }
            if (score == 5) {
                System.out.println("优秀");
            }
        } else {
            System.out.println("不及格");
        }

    }
}   


/*import java.util.Scanner;

public class Test06 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("分数： ");
        int score = sc.nextInt();

        switch (score) {
            case 1:
                System.out.println("不及格");
                break;
            case 2:
                System.out.println("及格");
                break;
            case 3:
                System.out.println("中等");
                break;
            case 4:
                System.out.println("良好");
                break;
            case 5:
                System.out.println("优秀");
                break;


        }
    }
} */